package com.fit.dao.contactPerson;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.ContactPerson;

public interface ContactPersonDAO {

	@CommitAfter
	public boolean save(ContactPerson newContactPerson);

	@CommitAfter
	public boolean delete(ContactPerson contactPerson);

	@CommitAfter
	public boolean update(ContactPerson contactPerson);

	public List<ContactPerson> findAll();
	
	public ContactPerson findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
	
}
